package bing.search.common;

import java.util.Map;

import com.google.common.collect.Maps;

public class IndexTypeField {

	private String fieldName;
	private Map<String,String> settings = null;
	
	public IndexTypeField () {
		this(null, Maps.newHashMap());
	}
	
	public IndexTypeField (String fieldName,Map<String,String> settings) {
		this.fieldName=fieldName;
		this.settings=settings;
	}
	
	public static IndexTypeField create(String fieldName,Map<String,String> settings) {
		return new IndexTypeField(fieldName, settings);
	}
	
	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public Map<String, String> getSettings() {
		return settings;
	}

	public void setSettings(Map<String, String> settings) {
		this.settings = settings;
	}
	
	public void addSetting(String key,String value) {
		this.settings.put(key, value);
	}
}
